//
//  ViewController.m
//  CLMasonry
//
//  Created by 小草毋正 on 17/5/17.
//  Copyright © 2017年 zbw. All rights reserved.
//

#import "ViewController.h"
#import "CLMasonry.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UIView *inview;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [CLMasonry masonry:self.inview baseView:self.inview.superview top:100 bottom:CLNIL left:50 right:CLNIL width:CLNIL height:CLNIL];
    
    
    //    [CLMasonry masonry:self.inview direction:CLDirectionRight baseView:self.inview.superview direction:CLDirectionRight distance:30];
    
    //    [CLMasonry widthEqual:self.inview baseView:self.inview.superview multiplied:0.75];
    
    [CLMasonry widthAndHeightEqual:self.inview baseView:self.inview.superview widthMultiplied:0.7 heightMultiplied:0.6];
    
    NSLog(@"%s", __func__);
    
    
    
    //    [CLMasonry masonry:self.inview direction:CLDirectionTop baseView:self.inview.superview direction:CLDirectionTop distance:10];
    //    [CLMasonry masonry:self.inview direction:CLDirectionBottom baseView:self.inview.superview direction:CLDirectionBottom distance:30];
    //    [CLMasonry masonry:self.inview direction:CLDirectionLeft baseView:self.inview.superview direction:CLDirectionLeft distance:40];
    //    [CLMasonry masonry:self.inview direction:CLDirectionRight baseView:self.inview.superview direction:CLDirectionRight distance:20];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
